package com.sky.properties;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "sky.wechat")
@Data
public class WeChatProperties {
    private String appid;         // 必须与微信商户绑定的公众号APPID一致
    private String secret;        // 公众号SECRET
    private String mchid;         // 微信支付商户号
    private String mchSerialNo;   // 商户证书序列号
    private String privateKeyFilePath; // 商户私钥文件路径
    private String apiV3Key; //证书解密的密钥
    private String weChatPayCertFilePath; //平台证书
    private String notifyUrl; //支付成功的回调地址
    private String refundNotifyUrl; //退款成功的回调地址

}
